package com.lagou.pojo;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data//get set toString
//@NoArgsConstructor//无参构造
//@AllArgsConstructor//有参构造

public class Course {
    //写字段 ->ids name 起匿名  ordinal 排序 serialize = false 不显示
    @JSONField(ordinal = 1)
    private int id;

    //课程名称
    @JSONField(ordinal = 2)
    private String course_name;

    //课程介绍
    @JSONField(ordinal = 3)
    private String brief;

    //讲师名称
    @JSONField(ordinal = 4)
    private String teacher_name;

}
